<?php /* Smarty version Smarty-3.1.16, created on 2017-05-10 00:12:23
         compiled from "E:\blog\App\Back\View\SinglePage\index.html" */ ?>
<?php /*%%SmartyHeaderCode:262795911e46ba80498-65686854%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2330825c1a548a0a103c3f4d7c8507341e6bb39a' => 
    array (
      0 => 'E:\\blog\\App\\Back\\View\\SinglePage\\index.html',
      1 => 1494345762,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '262795911e46ba80498-65686854',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_5911e46bacf2f0_20089045',
  'variables' => 
  array (
    'pageInfo' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5911e46bacf2f0_20089045')) {function content_5911e46bacf2f0_20089045($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../Public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<script>
	//定义页面载入事件
	$(function(){
		//获取btnAdd按钮
		$('#btnAdd').bind('click',function(){
			// 设置“添加文章”链接
			window.location.href = 'index.php?p=Back&c=SinglePage&a=add';
		});
	});
</script>

<div class="admin">
	<form action="index.php?p=Back&c=SinglePage&a=del" method="POST">
    <div class="panel admin-panel">
    	<div class="panel-head"><strong>单页列表</strong></div>
        <div class="padding border-bottom">        
            <input type="button" id="btnAdd" class="button button-small border-green" value="添加单页" />
        </div>
        <table class="table table-hover">
        	<tr>
                <th width="100">ID</th>
                <th width="200">单页标题</th>
                <th width="100">操作</th>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pageInfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
            <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['row']->value['page_id'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
</td>
                <td>
                    <a class="button border-blue button-little" href="index.php?p=Back&c=Single&a=edit&page_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['page_id'];?>
">修改</a> 
                    <a class="button border-yellow button-little" href="index.php?p=Back&c=Single&a=del&page_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['page_id'];?>
" onclick="return confirm('确定要删除吗?');" >删除</a>
                </td>
            </tr>
            <?php } ?>
        </table>

    </div>
    </form>
    <br />
    <p class="text-right text-gray" style="float:right">基于<a class="text-gray" target="_blank" href="#">MVC框架</a>构建</p>
</div>
</body>
</html><?php }} ?>
